package com.yuantu.judiciary.model.vo;

import com.yuantu.judiciary.model.dto.EntYearReportWebsiteDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

/**
 * 企业年报网站信息
 *
 * @author syw
 * @since 2023-07-20
 **/
@Data
@ApiModel("企业年报网站信息")
@Builder
public class EntReportWebsiteVO {
    @ApiModelProperty("年报 ID") private String ancheid;
    @ApiModelProperty("网站（网店）类型") private String webtype;
    @ApiModelProperty("网站（网店）名称") private String websitname;
    @ApiModelProperty("网站（网店）地址") private String domain;

    public static EntReportWebsiteVO getReportWebsite(EntYearReportWebsiteDTO data) {
        return EntReportWebsiteVO.builder()
                .ancheid(data.getANCHEID())
                .webtype(data.getWEBTYPE())
                .websitname(data.getWEBSITNAME())
                .domain(data.getDOMAIN())
                .build();
    }

}
